package model

type EnrollStudent struct {
	ID          int64   `gorm:"primaryKey;column:id" json:"id"`
	SchoolId    int     `gorm:"column:school_id;default:0"json:"school_id"`
	Year        int     `gorm:"column:year;default:0"json:"year"`
	Sfzh        string  `gorm:"column:sfzh;size:100;not null;default:''" json:"sfzh"`
	Ksh         string  `gorm:"column:ksh;size:100;not null;default:''"  json:"ksh"`
	StuName     string  `gorm:"column:stu_name;size:60;not null;default:''" json:"stu_name"`
	Lqzy        string  `gorm:"column:lqzy;size:60;not null;default:''"json:"lqzy"`
	LqRules     string  ` gorm:"column:lq_rules;size:200;not null;default:''"json:"lq_rules"`
	LqScore     float64 `gorm:"column:lq_score;size:8;not null;default:0"json:"lq_score"`
	Score       float64 `gorm:"column:score;size:60;not null;default:0"json:"score"`
	Kstz        string  `gorm:"column:kstz;size:50;not null;default:''"json:"kstz"`
	FileId      int64   `gorm:"column:file_id;size:10;not null;default:0"json:"file_id"`
	CreateTime  int64   `gorm:"column:create_time;size:10;not null;default:0"son:"create_time"`
	IsAffirm    int     `gorm:"column:is_affirm;size:10;not null;default:1"json:"is_affirm"`
	Remark      string  `gorm:"column:remark;size:255;not null;default:''"json:"remark"`
	LqStatus    int     `gorm:"column:lq_status;size:3;not null;default:1"json:"lq_status"`
	SignURL     string  `gorm:"column:sign_url;size:255;not null;default:''"json:"sign_url"`
	StuId       int64   `gorm:"column:stu_id;size:10;not null;default:0"json:"stu_id"`
	RuleId      int64   `gorm:"column:rule_id;size:10;not null;default:0"json:"rule_id"`
	LqType      string  `gorm:"column:lq_type;size:255;not null;default:''"json:"lq_type"`
	TypeId      int     `gorm:"column:type_id;size:10;not null;default:0"json:"type_id"`
	ScoreRank   int     `gorm:"column:score_rank;size:10;not null;default:0"json:"score_rank"`
	Pid         int     `gorm:"column:pid;size:10;not null"json:"pid"`
	ConfirmTime int64   `gorm:"column:xm;size:60;not null"json:"confirm_time"`
}

func (e *EnrollStudent) TableName() string {
	return "fd_enroll_student"
}

type EnrollToStudent struct {
	ID        int64       ` json:"id"`
	SchoolId  int         `json:"school_id"`
	Year      int         `json:"year"`
	StuName   string      `json:"stu_name"`
	Lqzy      string      `json:"lqzy"`
	LqRules   string      `json:"lq_rules"`
	LqScore   float64     `json:"lq_score"`
	Score     float64     `json:"score"`
	IsAffirm  int         `json:"is_affirm"`
	LqStatus  int         `json:"lq_status"`
	StuId     int64       `json:"stu_id"`
	RuleId    int64       `json:"rule_id"`
	LqType    string      `json:"lq_type"`
	TypeId    int         `json:"type_id"`
	ScoreRank int         `json:"score_rank"`
	Student   JoinStudent `json:"student" gorm:"foreignKey:id;references:stu_id""`
}

func (e *EnrollToStudent) TableName() string {
	return "fd_enroll_student"
}
